<% if @restaurant.total_tables > 0 %>
            <h3 class="box-title ">
              店铺二维码
            </h3>
            <div class="table-responsive">
              <table class="table table-striped" id="dataTable">
                <thead>
                  <tr>
                    <th>餐桌号</th>
                    <th>对应的二维码</th>
                  </tr>
                </thead>
                <tbody>
                  <% 1.upto(@restaurant.total_tables).each do |item| %>
                  <tr>
                    <td><%= item %></td>
                     <td class="qrcode" data-url="<%= "#{HOST}/mobile/weixin/welcome/#{@restaurant.id}/#{item}" %>"></td>
                  </tr>
                  <% end %>
                </tbody>
              </table>
            </div>
<% else %>
  <div class="well">
    <h4>注: 请设置店铺的餐桌数,系统将根据您设置的餐桌数生成相应的二维码</h4>
  </div>
<% end %>